<!DOCTYPE html >
<html>
	<head>
		<title>李小程博客</title>
		<meta property="qh.webmaster" content="561c9122d8cbd"/>
		<link rel="stylesheet" type="text/css" href="/css/common_v2.css?v=1.0"/>
		<link rel="stylesheet" type="text/css" href="/css/blogList_v2.css?v=1.0"/>
		<script type="text/javascript" src="/js/jquery.min.js?v=1.0"></script>
        <script src="/js/jquery.pagination.js"></script>
		<script type="text/javascript" src="/js/common_v2.js?v=1.0"></script>

		<?php w('Common/common_meta'); ?>
		
	</head>

	<body>

		<!--头部-->
		<?php w('Common/common_head'); ?>
		<!--头部-->

		<!--主体-->
		<div id="L_body">

			<!--左边-->
            <div id="L_header_left" >
                <div class="searchBar">
                    <form action="/Pub/lists.html" method="get">

                        <div class="search_li">
                            <span class="inpName">关键字：</span>
                            <input name="postKey" value="" type="text">
                        </div>

                        <div class="search_li">
                            <span class="inpName">文章分类：</span>
                            <select class="postType">
                                <option value="0">全部</option>
                                <option value="1">技术文档</option>
                                <option value="4">散文阅读</option>
                                <option value="82">科普阅读</option>
                                <option value="96">其他</option>
                            </select>
                            <select class="postType">
                                <option value="0">全部</option>
                                                </select>
                            <input name="postType" value="" type="hidden">
                        </div>
                        <!--
                        <div class="search_li">
                            <span class="inpName">发布时间：</span>
                            <input name="postDate[start]" class="postDate gldp-el" readonly="true" value="" type="text" />
                            <input name="postDate[end]"   class="postDate gldp-el" readonly="true" value="" type="text" />
                        </div>
                        -->
                        <div class="search_li">
                            <span class="inpName"><input value="确定" type="submit"></span>
                        </div>
                    </form>

                    <div class="searchBottom">
                        <a href="javascript:void(0)" class="showSerach">隐藏搜索</a>
                    </div>
                    
                </div>
                
                <div class="DocList">

                    <div class="pageNav"></div>
                    
                    <ul>
                        <?php
                            if(empty($cons_lists)){
                        ?>
                        <li>文章为空</li>
                        <?php
                            }else{
                                $i = 1;
                                foreach($cons_lists as $v){
                        ?>
                        <li style="clear: both;">
                            <span style="float: left;display: inline-block;line-height:30px;">
                                <span class="postNum"><?php echo $page_size*($page-1)+$i; ?></span>
                                <a href="/Pub/read/id/<?php echo $v['id'] ?>.html" title="<?php echo $v['post_title'] ?>" class="postTitle"><?php echo $v['post_title'] ?></a>
                                <span class="postType">
                                    分类:<?php
                                    $type_info = $v['post_type']?(isset($post_type_info[$v['post_type']])?$post_type_info[$v['post_type']]:[]):[];
                                    if($type_info){
                                        //二级
                                        if(isset($type_info['fid']) && $type_info['fid']!=0){
                                            echo '<a class="contentTypes" href="/Pub/lists/postType/'.$type_info['fid'].'.html">'.$type_info['fid_name'].'</a> - <a class="contentTypes" href="/Pub/lists/postType/'.$type_info['id'].'.html">'.$type_info['name'].'</a>';
                                        }else{
                                            echo '<a class="contentTypes" href="/Pub/lists/postType/'.$type_info['id'].'.html">'.$type_info['name'].'</a>';
                                        }
                                    }else{
                                        echo '[空]';
                                    }
                                ?>
                                </span>
                            </span>
                            <span style="float: right;display: inline-block;padding-right: 2em;line-height:30px;">
                            <a class="readNum" href="/Pub/read/id/679.html">(阅读:<?php echo $v['read_num']?:'0'; ?>)</a>
                            <i class="postTime"><?php
                                if($v['add_time']){
                                    echo date('Y-m-d',$v['add_time']);
                                }
                            ?></i>
                            </span>
                        </li>
                        <?php
                                    $i++;
                                }
                            }
                        ?>
                        
                    </ul>
                    
                    <input type="hidden" name="totalData" value="<?php echo $totalData; ?>" />
                    <input type="hidden" name="showData" value="<?php echo $showData; ?>" />
                    <input type="hidden" name="currentPage" value="<?php echo $current_page; ?>" />
                    <input type="hidden" name="jumpUrlBase" value="/Pub/lists?page=" />
                    
                </div>
            </div>
        </div>
        
    </body>

</html>